<?php

session_start();

include("Models/connectBDD.php");
include("calendar.php");
require('setlang.php');

if (isset($_GET['month']) && isset($_GET['year']))
{
	$calendar = calendarMonth($_SESSION['location_id'],$language,$_GET['month'],$_GET['year']);
}
else
{
	$calendar = calendarYear($_SESSION['location_id'],$_GET['year']);
}
	
	echo $calendar;

?>
